package com.xjrsoft.module.workflow.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xjrsoft.common.page.PageOutput;
import com.xjrsoft.core.secure.XjrUser;
import com.xjrsoft.module.workflow.dto.GetPageListNwfDelegateDto;
import com.xjrsoft.module.workflow.entity.XjrNwfDelegateRule;
import com.xjrsoft.module.workflow.vo.NwfDelegateVo;

/**
* @Author:湘北智造-框架开发组
* @Date:2020/11/2
* @Description:流程关联服务类
*/
public interface IXjrNwfDelegateRuleService extends IService<XjrNwfDelegateRule> {

    /**
    * @Author:湘北智造-框架开发组
    * @Date:2020/11/9
    * @Param:[iPage, fToUserName]
    * @return:com.xjrsoft.common.page.PageOutput<com.xjrsoft.module.workflow.entity.XjrNwfDelegaterule>
    * @Description:查询分页数据
    */
    PageOutput<NwfDelegateVo> selectDataPage(GetPageListNwfDelegateDto dto);

    /**
    * @Author:湘北智造-框架开发组
    * @Date:2020/11/9
    * @Param:[newXjrNwfDelegaterule, strSchemeInfo, xjrBaseUser]
    * @return:boolean
    * @Description:新增或更新
    */
    boolean addOrUpdate(GetPageListNwfDelegateDto dto, XjrUser currentUser) throws Exception;

    /**
    * @Author:湘北智造-框架开发组
    * @Date:2021/1/27
    * @Param:[ruleId]
    * @return:boolean
    * @Description:删除
    */
    boolean deleteDelegateRule(String ruleId);
}
